/*
 * @Author: 姜宇航 
 * @Date: 2022-07-12 11:09:06
 * @LastEditors: 姜宇航 
 * @LastEditTime: 2022-07-28 18:12:28
 * @FilePath: /iview-community-register/src/api/workerV2.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import axios from '@/libs/api.request'
export const getCommunityStarList = (data) => { // 社区星级列表
  return axios.request({
    url: '/api/ac/worker/communityStarService/getCommunityStarList',
    data: data,
    method: 'post',
  })
}
export const updateStar = (data) => { // 修改社区星级
  return axios.request({
    url: '/api/ac/worker/communityStarService/updateStar',
    data: data,
    method: 'post',
  })
}
export const createStarByYear = (data) => { // 社区年度星级初始化
  return axios.request({
    url: '/api/ac/worker/communityStarService/createStarByYear',
    data: data,
    method: 'post',
  })
}
export const updateFiveStar = (data) => { // 5星推荐
  return axios.request({
    url: '/api/ac/worker/communityStarService/updateFiveStar',
    data: data,
    method: 'post',
  })
}
export const getCommunityFiveStarList = (data) => { // 区推荐到市级的5星列表
  return axios.request({
    url: '/api/ac/worker/communityStarService/getCommunityFiveStarList',
    data: data,
    method: 'post',
  })
}
export const updateApplyY = (data) => { // 市级同意
  return axios.request({
    url: '/api/ac/worker/communityStarService/updateApplyY',
    data: data,
    method: 'post',
  })
}
export const updateApplyN = (data) => { // 市级不同意
  return axios.request({
    url: '/api/ac/worker/communityStarService/updateApplyN',
    data: data,
    method: 'post',
  })
}
export const insertStarYear = (data) => { // 设置星级评定时间
  return axios.request({
    url: '/api/ac/worker/communityStarService/insertStarYear',
    data: data,
    method: 'post',
  })
}
export const getStarInfo = (data) => { // 查询已设置的星级评定时间
  return axios.request({
    url: '/api/ac/worker/communityStarService/getStarInfo',
    data: data,
    method: 'post',
  })
}
// 获取全部类别 无参
export const selectAllEvaluationCategory = (data) => { 
  return axios.request({
    url: '/api/uc/worker/evaluationEntryService/selectAllEvaluationCategory',
    data: data,
    method: 'post',
  })
}

// 获取全部类别 分页
export const selectCategory = (data) => { 
  return axios.request({
    url: '/api/uc/worker/evaluationEntryService/selectCategory',
    data: data,
    method: 'post',
  })
}






//获取类别详情

export const selectEvaluationCategory = (data) => { 
  return axios.request({
    url: '/api/uc/worker/evaluationCategoryService/selectEvaluationCategory',
    data: data,
    method: 'post',
  })
}


//修改类别 => id
export const updateEvaluationCategory = (data) => { 
  return axios.request({
    url: '/api/uc/worker/evaluationCategoryService/updateEvaluationCategory',
    data: data,
    method: 'post',
  })
}



//获取全部评价类目 无参
export const selectAllEvaluationEntry = (data) => { 
  return axios.request({
    url: '/api/uc/worker/evaluationEntryService/selectAllEvaluationEntry',
    data: data,
    method: 'post',
  })
}



//获取全部评价类目 无参 分页
export const selectEntry = (data) => { 
  return axios.request({
    url: '/api/uc/worker/evaluationEntryService/selectEntry',
    data: data,
    method: 'post',
  })
}






//获取评价类目详情 id
export const selectEvaluationEntry = (data) => { 
  return axios.request({
    url: '/api/uc/worker/evaluationEntryService/selectEvaluationEntry',
    data: data,
    method: 'post',
  })
}




//类目保存 id
export const insertEvaluationEntryList = (data) => { 
  return axios.request({
    url: '/api/uc/worker/evaluationEntryService/insertEvaluationEntryList',
    data: data,
    method: 'post',
  })
}


//获取评价
export const selectAllEvaluation  = (data) => { 
  return axios.request({
    url: '/api/uc/worker/evaluationCategoryService/selectAllEvaluation',
    data: data,
    method: 'post',
  })
}



//修改类别
export const updateEvaluationEntry  = (data) => { 
  return axios.request({
    url: '/api/uc/worker/evaluationEntryService/updateEvaluationEntry',
    data: data,
    method: 'post',
  })
}


//保存类别
export const insertEvaluationCategory  = (data) => { 
  return axios.request({
    url: '/api/uc/worker/evaluationCategoryService/insertEvaluationCategory',
    data: data,
    method: 'post',
  })
}



